package com.kgcx.coupon.mapper;

import com.kgcx.coupon.domain.Advert;
import com.kgcx.coupon.dto.AdvertDTO;
import com.kgcx.coupon.vo.ad.AdVertQueryReqVO;
import com.kgcx.coupon.vo.ad.AdVertQueryRespVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 广告
 * @author panjin
 * @date 2017-12-15
 */
@Repository
public interface AdvertMapper {

    int deleteByPrimaryKey(Integer kid);

    int insert(Advert record);

    int insertSelective(Advert record);

    Advert selectByPrimaryKey(Integer kid);

    int updateByPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);

    List<AdVertQueryRespVO> queryList(AdVertQueryReqVO adVertQueryReqVO);

    int deleteByPrimaryKeyBatch(@Param("kids") List<Integer> kids);

    List<Advert> selectAdvert(AdvertDTO advertDTO);
}